//
//  BSKTimeKeepingItemTableViewCell.m
//  AlarmClock
//
//  Created by aaaa on 2016/9/30.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "BSKTimeKeepingItemTableViewCell.h"
#import "SDAutoLayout.h"

@interface BSKTimeKeepingItemTableViewCell ()
@end
@implementation BSKTimeKeepingItemTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        self.timeLabel = [[UILabel alloc]init];
        self.timeLabel.text = @"";
        self.timeLabel.font = [UIFont systemFontOfSize:30];
        self.timeLabel.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.timeLabel];
        
        self.intervalLabel = [[UILabel alloc]init];
        self.intervalLabel.text = @"间隔：0";
        self.intervalLabel.font = [UIFont systemFontOfSize:15];
        self.intervalLabel.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.intervalLabel];
        
        self.numberLabe = [[UILabel alloc]init];
        self.numberLabe.text = @"计次：0次";
        self.numberLabe.font = [UIFont systemFontOfSize:20];
        self.numberLabe.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.numberLabe];
        
        self.timeLabel.sd_layout
        .leftSpaceToView(self.contentView,20)
        .topSpaceToView(self.contentView,0)
        .widthRatioToView(self.contentView,0.55)
        .heightRatioToView(self.contentView,0.6);
        
        self.intervalLabel.sd_layout
        .leftSpaceToView(self.contentView,20)
        .topSpaceToView(self.timeLabel,0)
        .widthRatioToView(self.contentView,0.55)
        .heightRatioToView(self.contentView,0.4);
        
        self.numberLabe.sd_layout
        .leftSpaceToView(self.timeLabel,0)
        .topSpaceToView(self.contentView,0)
        .widthRatioToView(self.contentView,0.45)
        .heightRatioToView(self.contentView,1);
        

    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
